export default {
    // state形参 => state对象,用于修改state上的数据
    addX: function (state, payload) {
        console.log("addA被调用", payload);
        state.x++;
    },
    // addXAndA: function (state, payload ) {
    //     console.log("addXAndA被调用");
    //     console.log("state",state);
    //     console.log("payload",payload);
    //     state.x ++;
    // },

    
}